import request from './request'
const http = {
  get(url, params) {
    return request.get(url, { params })
  },
  post(url, data) {
    return request.post(url, data)
  },
  put(url, data) {
    return request.put(url, data)
  },
  delete(url) {
    return request.delete(url)
  }
}